package com.ruoyi.travel.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.List;

/**
 * 行程库对象 travel_itinerary
 */
public class TravelItinerary extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 行程库ID */
    private Long itineraryId;

    /** 行程库名称 */
    private String itineraryName;

    /** 逻辑删除标识（1=删除，0=未删除） */
    private Integer isDeleted;

    /** 行程内容列表（与Service调用保持一致） */

    private List<TravelItineraryContent> itineraryContents; // 修正字段名：与Service调用一致

    // Getters and Setters（严格对应字段名）
    public Long getItineraryId() { return itineraryId; }
    public void setItineraryId(Long itineraryId) { this.itineraryId = itineraryId; }

    public String getItineraryName() { return itineraryName; }
    public void setItineraryName(String itineraryName) { this.itineraryName = itineraryName; }

    public Integer getIsDeleted() { return isDeleted; }
    public void setIsDeleted(Integer isDeleted) { this.isDeleted = isDeleted; }

    // 修正getter：与字段名一致（关键！之前Service调用的是这个方法）
    public List<TravelItineraryContent> getItineraryContents() { return itineraryContents; }
    public void setItineraryContents(List<TravelItineraryContent> itineraryContents) {
        this.itineraryContents = itineraryContents;
    }

    @Override
    public String toString() {
        return "TravelItinerary{" +
                "itineraryId=" + itineraryId +
                ", itineraryName='" + itineraryName + '\'' +
                ", isDeleted=" + isDeleted +
                ", itineraryContents=" + itineraryContents +
                '}';
    }
}
